home *** CD-ROM | disk | FTP | other *** search
/ The Programmer Disk / The Programmer Disk (Microforum).iso / xpro / basic3 / pro14 / secure.doc < prev   
Text File  |  1991-06-06  |  3KB  |  88 lines

  1.  
  2.                                 SECURE
  3.  
  4.                               Version 4.2
  5.  
  6.                        Copyright 1991-Steve Lewis
  7.  
  8.                               June 6, 1991
  9.  
  10.  
  11.  
  12. SECURE was designed as a secure front-end for a program compiled in BASIC.
  13. SECURE is patched ahead of the start of the BASIC program, thus serving as
  14. a key. The text file, called AUTHORIZ, MUST BE PRESENT IN THE SAME DIRECTORY
  15. AS THE PROTECTED PROGRAM, IN ORDER FOR THE PROTECTED PROGRAM TO READ IT! The
  16. first line of AUTHORIZ contains the 8-digit serial number, followed by the
  17. checksum.
  18.  
  19. The format is as shown below;
  20.  
  21.  
  22.                              SERIAL NUMBER
  23.                              CHECKSUM<cr>
  24.  
  25. If the checksum is correct for the serial number, then the security flag,
  26. labeled as "SECURITY" will be set to 1. If the checksum is not correct, or if
  27. AUTHORIZ is not present in the same directory as the protected program, then
  28. "SECURITY" will be set to 0. It is up to the programmer to decide how to use
  29. this flag. The programmer may decide to terminate the program upon "SECURITY"
  30. assuming a value of 0, or may decide not to permit advanced features of the
  31. protected program to be accessed if "SECURITY" has a value of 0.
  32.  
  33.  
  34. As an example, a programmer may decide to jump from line 100 to line 120 if
  35. "SECURITY"=1. In this case, the program would be written as;
  36.  
  37.                      100 If SECURITY=1 then goto 120
  38.  
  39. In addition to this document, the following files are provided;
  40.  
  41.  
  42.                                  PROTECT.EXE
  43.                                  SECURE.BAS
  44.  
  45.  
  46. The first step is to append SECURE.BAS to your BASIC program. The only
  47. restriction is that YOUR PROGRAM MUST START AT LINE 20 OR ABOVE!
  48. Run PROTECT.EXE with SECURE.BAS present in the same directory, and you will be
  49. asked to enter a 5-digit Security Code to be imbedded in the BASIC program. You
  50. will then be asked to enter the filename of the BASIC program that you wish to
  51. protect, followed by the serial number that you wish to assign to the user's
  52. copy. PROTECT.EXE will then create a file called PROGRAM.BAS, as well as the
  53. file named AUTHORIZ. PROGRAM.BAS is your protected BASIC program. Rename it as
  54. desired, and then compile it.
  55.  
  56. While it's true that a user can give out the serial number and the checksum
  57. to other users, the user will be revealing his or her identity, since only that
  58. person's serial number will work! Also, it will work ONLY with copies that have
  59. the SAME 5-digit Security Code. For each 5-digit code, there is a DIFFERENT
  60. checksum for the SAME serial number!
  61.  
  62.  
  63.  
  64.         Written by Steve Lewis for the  IBM PC using DOS 2.0 or
  65.         later, including DOS 4.01
  66.  
  67.         SECURE is supplied for personal, private use. Feel free to
  68.         distribute SECURE given these restrictions:
  69.  
  70.           o  SECURE shall be supplied in its original, unmodified
  71.              form, which includes this documentation;
  72.  
  73.           o  no fee is charged.
  74.  
  75.           o  Commercial use ONLY by permission of the author.
  76.  
  77.         If you are using SECURE and find it of value, your gift in
  78.         any amount ($15 suggested) will be greatly appreciated.
  79.         Makes checks payable to:
  80.  
  81.                                  Steve Lewis
  82.                                  405 South Sunnyvale Ave.
  83.                                  #210
  84.                                  Sunnyvale, CA 94086
  85.  
  86.  
  87.  
  88.                          Voice: (415) 469-6604